﻿using System;
using Middleware.Naming;
using Middleware.Performance;

namespace Performance.Server
{
    class Program
    {
        static void Main(string[] args) {

            NamingStub _namingStub = new NamingStub();

            Console.WriteLine("Performance Server");
            Console.WriteLine();

            Console.WriteLine("Creating and registering remote object...");
            PerformanceImpl perf = new PerformanceImpl();
            _namingStub.Bind("Performance", perf);

            Console.WriteLine("Running service...");
            PerformanceService service = new PerformanceService();
            service.Start();

        }
    }
}
